package cn.edu.sgu.www.mhxysy.dto.waiguan;

import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class ShizhuangCategoryDTO implements DataTransferObject {

	@ApiModelProperty(value = "ID")
	private Integer id;

	/**
	 * 时装名称
	 */
	@NotBlank(message = "时装名称" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "时装名称", required = true)
	private String name;

	/**
	 * 时装类型
	 */
	@Positive(message = "时装类型" + CustomMessages.ILLEGAL)
	@NotNull(message = "时装类型" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "时装类型", required = true)
	private Integer type;

	/**
	 * 时装性别
	 */
	@Range(min = 1, max = 2,  message = "时装性别" + CustomMessages.ILLEGAL)
	@NotNull(message = "时装性别" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "时装性别", required = true)
	private Integer gender;

	/**
	 * 风尚数值
	 */
	@Min(value = 3, message = "风尚数值" + CustomMessages.ILLEGAL)
	@NotNull(message = "风尚数值" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "风尚数值", required = true)
	private Integer fashion;

	/**
	 * 颜色ID
	 */
	@ApiModelProperty(value = "颜色ID")
	private Integer colorId;

	/**
	 * 父级类型ID
	 */
	@ApiModelProperty(value = "父级类型ID")
	private Integer parentId;
}